package com.sig.models;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
	@SuppressWarnings("resource")
	public static void main(String[]args) throws FileNotFoundException{
		int c=0;
		String s1="206067.2 6085252.7,206071.8 6085314.17";
		 String s = "eXamPLestring>1.67>>ReSTOfString>>0.99>>ahgf>>.9>>>123>>>2323.12";
		    Pattern p = Pattern.compile("(\\d*\\.\\d+) (\\d*\\.\\d+)");
		    Matcher m = p.matcher(s1);
		    while(m.find()){
		        //System.out.println(Float.parseFloat(m.group()));
		        System.out.println(Float.parseFloat(m.group(1)));
		        System.out.println(Float.parseFloat(m.group(2)));
		        c=c+1;
		    }
		    System.out.println(c);
	}
}
